Add ESLint as a development dependency
Since now we aren't just using ESLint in the context of a pull request (with pronto-eslint), we're also adding the `ignorePatterns` option so it ignores third-party files. Note we're using ESLint 8 because ESLint 9 doesn't support our `.eslintrc` configuration file, which we need because it's required by pronto-eslint. However, when running pronto-eslint, we're using ESLint 6 (I think); this means that now the eslint command we run in development and the one run by pronto might behave differently, particularly if we add rules that have been introduced in ESLint 7 or 8. For now, since we generated the `.eslintrc` file using ESLint 6.0.1, everything works as expected in both situations.
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{
|
||||
"ignorePatterns": [
|
||||
"app/assets/javascripts/ckeditor/config.js",
|
||||
"node_modules/",
|
||||
"vendor/"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": false
|
||||
|
||||
948
package-lock.json
generated
948
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -12,6 +12,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stylistic/stylelint-plugin": "^2.1.0",
|
||||
"eslint": "^8.57.0",
|
||||
"postcss-scss": "^4.0.9",
|
||||
"stylelint": "^16.3.1",
|
||||
"stylelint-order": "^6.0.4",
|
||||
|
||||
Reference in New Issue
Block a user