Skip to content

Commit

Permalink
[ms-2060] fix ESLint rules (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Class66 committed Mar 13, 2021
1 parent d2713af commit 2e88d51
Show file tree
Hide file tree
Showing 6 changed files with 980 additions and 950 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
"max-len": ["warn", 100, { "ignoreComments": true }],
"no-var": "error",
"no-case-declarations": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-console": ["error", { "allow": ["table", "warn", "error"] }],
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"no-prototype-builtins": "off",
"no-underscore-dangle": "off",
Expand Down
14 changes: 7 additions & 7 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
};
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
},
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
},
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src/**/*.{js,jsx}",
"lint": "eslint src/**/*.{js,jsx} *.js",
"lint-css": "stylelint src/**/*.scss src/*.scss"
},
"repository": {
Expand All @@ -31,6 +31,8 @@
"react-dom": "17.0.1",
"react-scripts": "4.0.1",
"sass": "1.32.8",
"serve-static": "1.14.1",
"temporal": "0.7.1",
"web-vitals": "0.2.4"
},
"eslintConfig": {
Expand Down

0 comments on commit 2e88d51

Please sign in to comment.