Skip to content

Commit

Permalink
update linters
Browse files Browse the repository at this point in the history
  • Loading branch information
ntraut committed Oct 8, 2020
1 parent 60ac1d5 commit 7f25d47
Show file tree
Hide file tree
Showing 6 changed files with 1,116 additions and 439 deletions.
1 change: 1 addition & 0 deletions .eslintignore
14 changes: 11 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ module.exports = {
],
'no-underscore-dangle': 0,
},
overrides: [
{
files: ['bin/**'],
rules: {
'no-console': 'off',
},
},
],
globals: {
it: 'readonly',
describe: 'readonly',
Expand All @@ -36,6 +44,6 @@ module.exports = {
env: {
browser: true,
node: true,
jest: true
}
}
jest: true,
},
};
1 change: 1 addition & 0 deletions .prettierignore
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(api) {
module.exports = (api) => {
const presets = [
['@babel/preset-env', { useBuiltIns: 'entry', corejs: '3.0.0' }],
'@babel/preset-react',
Expand Down
35 changes: 20 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"scripts": {
"start": "node src/index.js",
"start.sandbox": "node src/sandbox.js",
"build": "webpack --config webpack.conf.js",
"watch": "webpack-dev-server --config webpack.conf.js",
"eslint.check": "eslint src/**/*.{js,jsx}",
"eslint.fix": "eslint src/**/*.{js,jsx} --fix",
"prettier.check": "prettier src/**/*.{js,jsx} --list-different",
"prettier.fix": "prettier src/**/*.{js,jsx} --write",
"build": "webpack --config webpack.config.js",
"watch": "webpack-dev-server --config webpack.config.js",
"eslint.check": "eslint --ext js,jsx .",
"eslint.fix": "eslint --ext js,jsx --fix .",
"prettier.check": "prettier --list-different .",
"prettier.fix": "prettier --write .",
"test": "jest --config spec/jest.config.js -i --forceExit",
"copyToSandbox": "./bin/migration.sh",
"performance": "node bin/performance.js"
Expand All @@ -26,7 +26,7 @@
},
"husky": {
"hooks": {
"pre-commit": "yarn eslint.check && yarn prettier.check"
"pre-commit": "lint-staged"
}
},
"author": "Matters",
Expand Down Expand Up @@ -72,25 +72,30 @@
"copy-webpack-plugin": "5.0.3",
"core-js": "3.1.4",
"css-loader": "3.0.0",
"eslint": "6.0.1",
"eslint-config-airbnb": "17.1.1",
"eslint-config-prettier": "6.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.2",
"eslint": "7.10.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.21.3",
"html-webpack-plugin": "3.2.0",
"husky": "3.0.1",
"husky": ">=4",
"jest": "24.8.0",
"json2csv": "^4.5.2",
"lint-staged": ">=10",
"mini-css-extract-plugin": "0.7.0",
"nock": "10.0.6",
"node-sass": "4.13.1",
"prettier": "1.18.2",
"prettier": "^2",
"sass-loader": "7.1.0",
"style-loader": "0.23.1",
"url-loader": "2.0.1",
"webpack": "4.35.2",
"webpack-cli": "3.3.5",
"webpack-dev-server": "^3.7.2"
},
"lint-staged": {
"*.{js,jsx}": "eslint --cache --fix",
"*.*": "prettier --ignore-unknown --write"
}
}
Loading

0 comments on commit 7f25d47

Please sign in to comment.