Skip to content

Commit

Permalink
Merge pull request #26 from Exabyte-io/update/SOF-6874
Browse files Browse the repository at this point in the history
update/SOF-6874: update eslint config
  • Loading branch information
unsigned6 authored Sep 12, 2023
2 parents 2422cae + 186aa22 commit b290121
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 97 deletions.
92 changes: 2 additions & 90 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,7 @@
{
"extends": ["@exabyte-io/eslint-config"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
},
"exports": {}
}
},
"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.
["^\\."]
]
}
]
},
"overrides": [
{
"files": [
"*.js",
"*.ts",
"*.tsx"
],
"extends": [
"@exabyte-io/eslint-config",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"import/no-absolute-path": "off",
"import/extensions": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"no-use-before-define": "off",
"no-restricted-exports": "off",
"no-shadow": "off",
"@typescript-eslint/no-use-before-define": [
"error"
]
},
"plugins": [
"@typescript-eslint"
]
}
]
"no-restricted-exports": "off"
}
}

21 changes: 18 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "0.0.0",
"description": "Cove.js - reusable components",
"scripts": {
"lint": "eslint src tests && prettier --write src tests",
"lint:fix": "eslint --fix --cache src tests && prettier --write src tests",
"lint": "eslint src && prettier --write src",
"lint:fix": "eslint --fix --cache src && prettier --write src",
"transpile": "tsc",
"postinstall": "npm run transpile",
"prettier": "prettier --check src tests",
"prettier": "prettier --check src",
"prepare": "husky install"
},
"repository": {
Expand Down Expand Up @@ -70,7 +70,7 @@
"underscore.string": "^3.3.6"
},
"devDependencies": {
"@exabyte-io/eslint-config": "^2022.11.17-0",
"@exabyte-io/eslint-config": "^2023.8.29-1",
"@mui/icons-material": "^5.11.9",
"@mui/lab": "^5.0.0-alpha.120",
"@mui/material": "^5.11.9",
Expand All @@ -91,6 +91,7 @@
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jsdoc": "37.1.0",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-mui-path-imports": "0.0.15",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-simple-import-sort": "7.0.0",
Expand Down

0 comments on commit b290121

Please sign in to comment.