Skip to content

Commit 04d200d

Browse files
author
Alucard
committed
Migrating to use typescript...
1 parent 2d523f3 commit 04d200d

File tree

13 files changed

+676
-418
lines changed

13 files changed

+676
-418
lines changed

.eslintrc.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
module.exports = {
2-
"parser": "babel-eslint",
3-
"extends": "airbnb",
4-
"plugins": [
5-
"react",
6-
"jsx-a11y",
7-
"import"
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
parserOptions: {
4+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5+
sourceType: 'module', // Allows for the use of imports
6+
ecmaFeatures: {
7+
jsx: true, // Allows for the parsing of JSX
8+
},
9+
},
10+
extends: [
11+
'plugin:@typescript-eslint/recommended',
12+
'plugin:react/recommended',
13+
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
14+
'plugin:prettier/recommended',
815
],
16+
plugins: ['react', 'jsx-a11y', 'import'],
917
rules: {
1018
'react/jsx-filename-extension': 'off',
1119
},
12-
};
20+
};

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true
6+
}

0 commit comments

Comments
 (0)