Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lambdaschool/eslint-config

Package Overview
Dependencies
Maintainers
9
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lambdaschool/eslint-config - npm Package Compare versions

Comparing version 6.0.4 to 7.0.0

36

package.json
{
"name": "@lambdaschool/eslint-config",
"version": "6.0.4",
"version": "7.0.0",
"description": "Eslint configuration options to be shared across internal projects",

@@ -28,25 +28,25 @@ "repository": {

"test": "npm run test:base && npm run test:react && npm run test:typescript",
"test:base": "eslint test/base",
"test:react": "eslint test/react",
"test:typescript": "eslint --ext ts test/typescript inline-typescript-spec-files"
"test:base": "eslint ./test/base",
"test:react": "eslint ./test/react",
"test:typescript": "eslint --ext ts ./test/typescript inline-typescript-spec-files"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "4.12.0",
"@typescript-eslint/parser": "4.12.0",
"eslint": "7.11.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-mocha": "8.0.0",
"@typescript-eslint/eslint-plugin": "5.20.0",
"@typescript-eslint/parser": "5.20.0",
"eslint": "8.13.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-mocha": "10.0.4",
"eslint-plugin-mocha-no-only": "1.1.1",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-react": "7.22.0",
"prettier": "2.2.1"
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"prettier": "2.6.2"
},
"devDependencies": {
"@lambdaschool/package-utils": "1.4.0",
"@types/react": "17.0.0",
"react": "17.0.1",
"typescript": "4.1.3"
"@lambdaschool/package-utils": "1.9.0",
"@types/react": "18.0.5",
"react": "18.0.0",
"typescript": "4.6.3"
}
}

@@ -39,10 +39,22 @@ # eslint

2. Select "Settings"
3. Ensure that you on the "User" tab so that the settings will be applied globally (not Workspace)
4. Search for "unformatted"
3. Ensure that you on the "User" tab so that the settings will be applied globally (not "Workspace")
4. Search for "Code Actions On Save"
5. In the search results click on a link to "Edit in settings.json"
6. Now you should have your settings.json file open.
#### Format on save
Setting up VSCode to format on save is a huge time saver. These settings make it so that every time your cursor leaves the file, the file is saved. Furthermore, every time the file is saved, it gets formatted using our eslint and prettier configuration! :tada: Just add the following to your `settings.json` file:
```json
"files.autoSave": "onFocusChange",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
```
#### Install and configure the Prettier extension
1. Install the "Prettier - Code formatter" extension by Esben Petersen (note that there are currently four (4) Prettier extensions. You want the one by Esben Petersen. This extension uses your _local_ .prettierrc.js file and uses your _locally installed_ prettier package in your node_modules folder. The fact that it reads the local files is what makes this package work better than the default prettier implementation that ships with VSCode.
1. Install the "Prettier - Code formatter" extension by Prettier (note that there are currently more than 10 Prettier extensions. You want the one by Prettier. This extension uses your _local_ .prettierrc.js file and uses your _locally installed_ prettier package in your node_modules folder. The fact that it reads the local files is what makes this package work better than the default prettier implementation that ships with VSCode.
2. Make this extension the default formatter by adding the following to your `settings.json` file:

@@ -53,3 +65,3 @@

"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

@@ -65,20 +77,22 @@ ```

"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
```
#### Format on save
#### Install and configure the Markdown Extension
Setting up VSCode to format on save is a huge time saver. These settings make it so that every time your cursor leaves the file, the file is saved. Furthermore, every time the file is saved, it gets formatted using our eslint and prettier configuration! :tada: Just add the following to your `settings.json` file:
1. Install the "Markdown Extension Pack" extension by bat67. This extension installs many other markdown extensions including a linter.
2. Configure the markdown linter to not modify bare urls. MD034/no-bare-urls, when enabled, does not allow bare urls such as `https://github.com`. When enabled, bare urls will be converted to `[https://github.com/](https://github.com/)`.
```json
"files.autoSave": "onFocusChange",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"markdownlint.config": {
"MD034": false
},
```

@@ -85,0 +99,0 @@

@@ -9,3 +9,3 @@ module.exports = {

rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-function-return-type': 1,
'@typescript-eslint/explicit-module-boundary-types': 0,

@@ -12,0 +12,0 @@ '@typescript-eslint/indent': 0,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc