Skip to content

Commit

Permalink
Fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Jun 19, 2023
1 parent ff0d219 commit f8d1b38
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 64 deletions.
69 changes: 27 additions & 42 deletions package-lock.json

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

21 changes: 2 additions & 19 deletions packages/eslint-config-custom/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
// const prettierConfigStandard = require('prettier-config-standard')

// {
// "arrowParens": "always",
// "bracketSpacing": true,
// "jsxBracketSameLine": false,
// "jsxSingleQuote": false,
// "quoteProps": "as-needed",
// "singleQuote": true,
// "semi": false,
// "printWidth": 140,
// "useTabs": false,
// "tabWidth": 2,
// "trailingComma": "es5"
// }

const modifiedConfig = {
// ...prettierConfigStandard,
singleQuote: true,
jsxSingleQuote: true,
spaceBeforeFunctionParen: true,
printWidth: 100,
parser: 'typescript'
// ... other modified settings here
parser: 'typescript',
semi: false
}

module.exports = modifiedConfig
17 changes: 14 additions & 3 deletions packages/eslint-config-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ module.exports = {
env: {
"jest/globals": true
},
extends: ['standard-with-typescript', 'plugin:prettier/recommended',],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
parserOptions: {
project: './tsconfig.json'
},
parser: '@typescript-eslint/parser',
plugins: ['react-hooks', 'jest', 'prettier'],
plugins: ['@typescript-eslint', 'react-hooks', 'jest'],
rules: {
'node/no-path-concat': 'off',
'multiline-ternary': 'off',
Expand Down Expand Up @@ -58,7 +62,14 @@ module.exports = {
}
}
],
// "prettier/prettier": "error"
// 'prettier/prettier': [
// "error", {
// semi: false,
// singleQuote: true
// },
// {
// "usePrettierrc": false
// }],
},
overrides: [
{
Expand Down

0 comments on commit f8d1b38

Please sign in to comment.