Skip to content

Commit b9a89c9

Browse files
committed
missing config files
1 parent 2844efd commit b9a89c9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.eslintrc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
3+
extends: [
4+
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
5+
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
6+
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
7+
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
8+
],
9+
parserOptions: {
10+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
11+
sourceType: "module", // Allows for the use of imports
12+
ecmaFeatures: {
13+
jsx: true // Allows for the parsing of JSX
14+
}
15+
},
16+
rules: {
17+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
18+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
19+
"react/prop-types": 0
20+
},
21+
settings: {
22+
react: {
23+
version: "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
24+
}
25+
}
26+
};

.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: "all",
4+
singleQuote: false,
5+
printWidth: 120,
6+
tabWidth: 2
7+
8+
};

0 commit comments

Comments
 (0)