Squashed commit of the following:
commit5d38a76997Merge:7cccdb9f160e23Author: Blake <blakejoy@users.noreply.github.com> Date: Sat Apr 15 11:44:39 2023 -0400 Merge pull request #22 from blakejoy/feat/add_linting feat - add linting and prettier commitf160e2362cAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:44:00 2023 -0400 add pre commit hook commit0fd8317884Merge:bc91674d1e87baAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:41:28 2023 -0400 add husky commitbc91674c4bAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Sat Apr 15 11:39:24 2023 -0400 add husky commitd1e87ba7beAuthor: Blake <blakejoy@users.noreply.github.com> Date: Fri Apr 14 08:48:33 2023 -0400 Update .prettierrc commitd064d4d86fAuthor: Blake Joynes <blakejoynes@gmail.com> Date: Fri Apr 14 03:09:39 2023 -0400 turn off linebreak rules commit06155bd323Author: Blake Joynes <blakejoynes@gmail.com> Date: Thu Apr 13 21:58:41 2023 -0400 add linting and prettier
This commit is contained in:
41
.eslintrc.js
41
.eslintrc.js
@@ -2,42 +2,21 @@ module.exports = {
|
||||
env: {
|
||||
browser: false,
|
||||
es2021: true,
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier",
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
parser: "@typescript-eslint/parser",
|
||||
parserOptions: {
|
||||
ecmaVersion: 12,
|
||||
sourceType: 'module',
|
||||
sourceType: "module",
|
||||
},
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
],
|
||||
rules: {
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/interface-name-prefix': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-empty-interface': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': ['warn', { allowExpressions: true }],
|
||||
indent: 'off',
|
||||
'@typescript-eslint/indent': ['error', 2],
|
||||
'no-trailing-spaces': 'error',
|
||||
quotes: ['error', 'single', { allowTemplateLiterals: true }],
|
||||
semi: ['error', 'always'],
|
||||
'spaced-comment': ['error', 'always'],
|
||||
'no-irregular-whitespace': ['error', { 'skipComments': true }],
|
||||
'space-infix-ops': 'error',
|
||||
'array-bracket-spacing': 'error',
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'space-before-function-paren': ['error', {
|
||||
named: 'never',
|
||||
anonymous: 'never',
|
||||
asyncArrow: 'always',
|
||||
}],
|
||||
'comma-dangle': ['warn', 'always-multiline'],
|
||||
'no-multiple-empty-lines': 'error',
|
||||
rules:{
|
||||
'linebreak-style': ['off', 'unix'],
|
||||
},
|
||||
plugins: ["@typescript-eslint"],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user