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:
Javi Martín
2024-05-17 01:32:49 +02:00
parent 94145f4d09
commit 5d4c5a12a8
3 changed files with 954 additions and 0 deletions

View File

@@ -1,4 +1,9 @@
{
"ignorePatterns": [
"app/assets/javascripts/ckeditor/config.js",
"node_modules/",
"vendor/"
],
"env": {
"browser": true,
"es6": false

948
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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",