Skip to content

Commit

Permalink
Merge pull request #163 from etherspot/fix/PRO-2659/prettier-eslint-i…
Browse files Browse the repository at this point in the history
…mplementation

fix/PRO-2659/prettier-eslint-implementation
  • Loading branch information
RanaBug authored Sep 5, 2024
2 parents 2d72039 + d9ed89b commit a53097e
Show file tree
Hide file tree
Showing 52 changed files with 4,022 additions and 889 deletions.
101 changes: 101 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/jsx-runtime",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:prettier/recommended",
"prettier"
],
"overrides": [
{
"env": {
"node": true
},
"files": [".eslintrc.{js,cjs}"],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import",
"prettier"
],
"rules": {
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"quotes": ["error", "single"],
"prettier/prettier": "error",
"react/jsx-filename-extension": [
1,
{
"extensions": [".jsx", ".tsx"]
}
],
"import/prefer-default-export": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never",
"jsx": "never",
"js": "never"
}
],
"react/function-component-definition": [
2,
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "function-expression"
}
],
"react/require-default-props": "off",
"react/no-array-index-key": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-plusplus": "off"
},
"ignorePatterns": [
"node_modules/",
"build/",
"__tests__/",
"jest.config.js",
"babel.config.js",
"rollup.config.js"
],
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
Empty file added .prettierignore
Empty file.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "es5",
"semi": true,
"tabWidth": 2,
"endOfLine": "auto"
}

Loading

0 comments on commit a53097e

Please sign in to comment.