Skip to content

Commit 76f43d7

Browse files
authored
Merge pull request #48 from hiringkanban/lint
project lint
2 parents 3d89b04 + 6169685 commit 76f43d7

File tree

142 files changed

+8690
-3353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+8690
-3353
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vite.config.ts

.eslintrc.cjs

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: [
7+
'airbnb',
8+
'airbnb-typescript',
9+
'airbnb/hooks',
10+
'plugin:react/recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'plugin:prettier/recommended',
13+
],
14+
overrides: [],
15+
parser: '@typescript-eslint/parser',
16+
parserOptions: {
17+
ecmaVersion: 'latest',
18+
sourceType: 'module',
19+
project: ['./tsconfig.json'],
20+
},
21+
plugins: ['react', '@typescript-eslint', 'prettier'],
22+
rules: {
23+
'react/react-in-jsx-scope': 0,
24+
'react/prop-types': 0,
25+
'react/function-component-definition': 0,
26+
'no-restricted-exports': 0,
27+
'prettier/prettier': [
28+
'error',
29+
{
30+
trailingComma: 'es5',
31+
singleQuote: true,
32+
printWidth: 100,
33+
tabWidth: 2,
34+
semi: true,
35+
endOfLine: 'auto',
36+
},
37+
],
38+
},
39+
};

.prettierrc.cjs

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

0 commit comments

Comments
 (0)