Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
feat(core): add no-magic-numbers
Browse files Browse the repository at this point in the history
BREAKING CHANGE: magic numbers will now error
  • Loading branch information
vuki656 committed Oct 24, 2022
1 parent ee1ab4f commit 133e0a0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .eslintrc.json
@@ -1,14 +1,23 @@
{
"extends": [
"./core.js",
"./jest.js",
"./mobx.js",
"./react.js",
"./testing-library.js",
"./type-graphql.js"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
},
"overrides": [
{
"extends": ["@rimac-technology/eslint-config/core"],
"files": "*.js"
},
{
"extends": [
"./core.js",
"./jest.js",
"./mobx.js",
"./react.js",
"./testing-library.js",
"./type-graphql.js"
],
"files": "./__tests__/example.ts"
}
]
}
1 change: 1 addition & 0 deletions core.js
Expand Up @@ -286,6 +286,7 @@ module.exports = {
'no-inner-declarations': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-magic-numbers': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': 'error',
'no-multiple-empty-lines': [
Expand Down

0 comments on commit 133e0a0

Please sign in to comment.