Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Move ESLint config to dedicated file
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonb927 committed Aug 6, 2024
1 parent 44b7061 commit f13abf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default [
{
parserOptions: {
ecmaVersion: 2024,
sourceType: 'module',
},
files: ['*/_assets/scripts/**/*.js'],
},
]
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
},
"scripts": {
"surge": "./node_modules/.bin/surge",
"lint": "eslint --fix '*/_assets/scripts/**/*.js' && npm run prettier:write",
"lint:nofix": "eslint '*/_assets/scripts/**/*.js' && npm run prettier",
"lint": "eslint --fix && npm run prettier:write",
"lint:nofix": "eslint && npm run prettier",
"prettier": "prettier '*/_assets/scripts/**/*.js' --check",
"prettier:write": "prettier '*/_assets/scripts/**/*.js' --write",
"brandonb.ca:deploy:dryrun": "cd brandonb.ca && JEKYLL_ENV=production gulp deploy_dryrun",
Expand Down Expand Up @@ -83,11 +83,5 @@
},
"browserslist": [
"defaults"
],
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2024,
"sourceType": "module"
}
}
]
}

0 comments on commit f13abf7

Please sign in to comment.