Skip to content

Commit

Permalink
chore: add eslint-plugin-json
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu committed May 23, 2024
1 parent bc2e4eb commit 2432106
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
root: true,
extends: 'airbnb-base',
plugins: [
'json',
],
env: {
browser: true,
},
Expand All @@ -11,6 +14,7 @@ module.exports = {
requireConfigFile: false,
},
rules: {
'json/*': 'error',
// allow reassigning param
'no-param-reassign': [2, { props: false }],
'linebreak-style': ['error', 'unix'],
Expand Down
124 changes: 123 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1.3.0",
"description": "Starter project for Adobe Helix",
"scripts": {
"lint:js": "eslint .",
"lint:js": "eslint . --ext .json,.js",
"lint:css": "stylelint blocks/**/*.css styles/*.css",
"lint": "npm run lint:js && npm run lint:css"
},
Expand All @@ -22,9 +22,10 @@
"@babel/core": "7.24.4",
"@babel/eslint-parser": "7.24.1",
"chai": "5.1.0",
"eslint": "8.57.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-json": "^3.1.0",
"stylelint": "16.3.1",
"stylelint-config-standard": "36.0.0"
}
Expand Down

0 comments on commit 2432106

Please sign in to comment.