Skip to content

Commit

Permalink
Merge pull request #31 from NucleoidJS/combine-lint-and-format
Browse files Browse the repository at this point in the history
Combine ESLint and Prettier
  • Loading branch information
halilcengel authored Jul 31, 2023
2 parents 7e0b0a9 + dcdcae5 commit 83f1e3b
Show file tree
Hide file tree
Showing 6 changed files with 9,157 additions and 22,260 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.js

This file was deleted.

46 changes: 46 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"env": {
"es2020": true,
"node": true,
"mocha": true,
"jest": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react":{
"version": "18.2"
}
},

"ignorePatterns":
["/node_modules", "/build"],

"rules": {
"react/no-children-prop": "off",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"eqeqeq": ["error", "always"],
"no-console": "off",
"no-eval": "error",
"no-var": "error",
"prefer-const": "error",
"sort-imports": [
"warn",
{
"memberSyntaxSortOrder": ["none", "single", "multiple", "all"]
}
]
}
}
Loading

0 comments on commit 83f1e3b

Please sign in to comment.