@lambdaschool/eslint-config
Advanced tools
Comparing version 6.0.4 to 7.0.0
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117
8556
6
+ Added@eslint/eslintrc@1.4.1(transitive)
+ Added@humanwhocodes/config-array@0.9.5(transitive)
+ Added@humanwhocodes/object-schema@1.2.1(transitive)
+ Added@typescript-eslint/eslint-plugin@5.20.0(transitive)
+ Added@typescript-eslint/parser@5.20.0(transitive)
+ Added@typescript-eslint/scope-manager@5.20.0(transitive)
+ Added@typescript-eslint/type-utils@5.20.0(transitive)
+ Added@typescript-eslint/types@5.20.0(transitive)
+ Added@typescript-eslint/typescript-estree@5.20.0(transitive)
+ Added@typescript-eslint/utils@5.20.0(transitive)
+ Added@typescript-eslint/visitor-keys@5.20.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedeslint@8.13.0(transitive)
+ Addedeslint-config-airbnb-base@15.0.0(transitive)
+ Addedeslint-config-prettier@8.5.0(transitive)
+ Addedeslint-plugin-import@2.26.0(transitive)
+ Addedeslint-plugin-mocha@10.0.4(transitive)
+ Addedeslint-plugin-prettier@4.0.0(transitive)
+ Addedeslint-plugin-react@7.29.4(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedeslint-utils@3.0.0(transitive)
+ Addedeslint-visitor-keys@3.4.3(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedflatted@3.3.2(transitive)
+ Addedglob-parent@6.0.2(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedobject.hasown@1.1.4(transitive)
+ Addedprettier@2.6.2(transitive)
+ Addedramda@0.28.0(transitive)
+ Addedresolve@2.0.0-next.5(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedtype-fest@0.20.2(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@eslint/eslintrc@0.1.3(transitive)
- Removed@typescript-eslint/eslint-plugin@4.12.0(transitive)
- Removed@typescript-eslint/experimental-utils@4.12.0(transitive)
- Removed@typescript-eslint/parser@4.12.0(transitive)
- Removed@typescript-eslint/scope-manager@4.12.0(transitive)
- Removed@typescript-eslint/types@4.12.0(transitive)
- Removed@typescript-eslint/typescript-estree@4.12.0(transitive)
- Removed@typescript-eslint/visitor-keys@4.12.0(transitive)
- Removedacorn@7.4.1(transitive)
- Removedansi-colors@4.1.3(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedastral-regex@1.0.0(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcontains-path@0.1.0(transitive)
- Removeddoctrine@1.5.0(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedenquirer@2.4.1(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedeslint@7.11.0(transitive)
- Removedeslint-config-airbnb-base@14.2.1(transitive)
- Removedeslint-config-prettier@7.1.0(transitive)
- Removedeslint-plugin-import@2.22.1(transitive)
- Removedeslint-plugin-mocha@8.0.0(transitive)
- Removedeslint-plugin-prettier@3.3.1(transitive)
- Removedeslint-plugin-react@7.22.0(transitive)
- Removedeslint-utils@2.1.0(transitive)
- Removedeslint-visitor-keys@1.3.0(transitive)
- Removedespree@7.3.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedfile-entry-cache@5.0.1(transitive)
- Removedfind-up@2.1.0(transitive)
- Removedflat-cache@2.0.1(transitive)
- Removedflatted@2.0.2(transitive)
- Removedglobals@12.4.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedignore@4.0.6(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedload-json-file@2.0.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedpath-type@2.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpify@2.3.0(transitive)
- Removedprettier@2.2.1(transitive)
- Removedprogress@2.0.3(transitive)
- Removedramda@0.27.2(transitive)
- Removedread-pkg@2.0.0(transitive)
- Removedread-pkg-up@2.0.0(transitive)
- Removedrimraf@2.6.3(transitive)
- Removedsemver@5.7.2(transitive)
- Removedslice-ansi@2.1.0(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedtable@5.4.6(transitive)
- Removedtype-fest@0.8.1(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedwrite@1.0.3(transitive)
Updatedeslint@8.13.0
Updatedeslint-config-prettier@8.5.0
Updatedeslint-plugin-import@2.26.0
Updatedeslint-plugin-mocha@10.0.4
Updatedeslint-plugin-prettier@4.0.0
Updatedeslint-plugin-react@7.29.4
Updatedprettier@2.6.2