Skip to content

Commit

Permalink
update: .eslintrc.json with mat3ra config
Browse files Browse the repository at this point in the history
  • Loading branch information
unsigned6 committed Nov 15, 2022
1 parent db81a21 commit b8ede55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
57 changes: 1 addition & 56 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,4 @@
{
"extends": ["airbnb", "prettier", "eslint:recommended"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"plugins": ["prettier", "simple-import-sort", "jsdoc"],
"rules": {
"prettier/prettier": "error",
"comma-dangle": ["error", "always-multiline"],
"array-element-newline": ["error", "consistent"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"one-var": ["error", { "uninitialized": "always", "initialized": "never" }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"prefer-template": "off",
"camelcase": "off",
"max-len": "off",
"no-console": "off",
"no-unused-expressions": "warn",
"no-confusing-arrow": "off",
"no-underscore-dangle": "off",
"no-return-assign": "off",
"consistent-return": "off",
"arrow-body-style": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default-member": "warn",
"no-param-reassign": ["warn", { "props": false }],
"max-classes-per-file": "warn",
"simple-import-sort/imports": [
"warn",
{
"groups": [
// Side effect imports.
["^\\u0000"],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports
[
"^(components|configs|constants|containers|domain|enhancers|hocs|libs|pages|reducers|services|store|modules|dictionaries)(/.*|$)"
],
// Relative imports.
// Anything that starts with a dot.
["^\\."]
]
}
]
}
"extends": ["mat3ra"]
}

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

0 comments on commit b8ede55

Please sign in to comment.