Skip to content

Commit

Permalink
Don't explicitly list directories to format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Jul 29, 2022
1 parent 036384f commit a9fedd0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
45 changes: 20 additions & 25 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
module.exports = {
"ignorePatterns": [
".eslintrc.js",
"web/webpack.config.js",
"lib/rollup.config.js",
"main.js",
"script/**/*.js",
"**/dist/**/*.js"
],
"env": {
"browser": true,
"es2021": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
},
"plugins": ["jest"]
}
ignorePatterns: [
'.eslintrc.js',
'web/webpack.config.js',
'lib/rollup.config.js',
'**/dist/**/*.js',
'.venv',
],
env: {
browser: true,
es2021: true,
'jest/globals': true,
},
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {},
plugins: ['jest'],
};
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/dist/**/*
web/templates/**/*
.venv
README.md
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"#lib": "./lib/index.js"
},
"scripts": {
"format": "prettier --write {lib,web,tests}",
"lint": "prettier --check {lib,web,tests} && eslint {lib,web,tests}",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"clean:lib": "rimraf lib/dist",
"clean:web": "rimraf web/dist",
"clean": "yarn clean:lib && yarn clean:web",
Expand Down

0 comments on commit a9fedd0

Please sign in to comment.