diff --git a/.eslintrc.js b/.eslintrc.js index 5670680d1..e99bdd53e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,14 +20,12 @@ module.exports = { "react", "react-hooks", '@typescript-eslint/eslint-plugin', - 'prettier', - 'jest' + 'jest', ], extends: [ - "plugin:react/recommended", - 'airbnb-base', 'airbnb', - 'eslint:recommended', + "plugin:prettier/recommended", + "plugin:react/recommended", 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', ], @@ -50,11 +48,11 @@ module.exports = { 'comma-dangle': 2, 'linebreak-style': 'off', 'no-useless-constructor': 0, - 'max-len': ["error", { - code: 120, tabWidth: 2, ignoreComments: true, ignoreTrailingComments: true, ignoreStrings: true, - ignoreUrls: true, ignoreTemplateLiterals: true, - ignorePattern: "^import\\s.+\\sfrom\\s.+;$", - }], + // 'max-len': ["error", { + // code: 120, tabWidth: 2, ignoreComments: true, ignoreTrailingComments: true, ignoreStrings: true, + // ignoreUrls: true, ignoreTemplateLiterals: true, + // ignorePattern: "^import\\s.+\\sfrom\\s.+;$", + // }], 'max-params': ["warn", 4], "no-shadow": 2, /** diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..b9893d4c9 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 100, + "tabWidth": 2, + "singleQuote": true, + "trailingComma": "all", + "bracketSpacing": true, + "semi": true, + "useTabs": false, + "arrowParens": "avoid", + "endOfLine": "lf" + } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index cb8e7dc37..ec44cf22b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ /* other options */ "baseUrl": "./", "paths": { - "@quramy/*": [ + "@truepoint/*": [ "./*/src" ] }