-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: make configs of prettier and eslint simple
- Loading branch information
progfay
committed
Jun 13, 2021
1 parent
52ca8f3
commit e22a59a
Showing
6 changed files
with
9,352 additions
and
13,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
module.exports = { | ||
env: { | ||
'jest/globals': true, | ||
"jest/globals": true, | ||
browser: true, | ||
es6: true | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ['prettier'], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly' | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
project: './tsconfig.eslint.json' | ||
}, | ||
rules: { | ||
'prettier/prettier': 'error' | ||
sourceType: "module", | ||
project: "./tsconfig.eslint.json", | ||
}, | ||
plugins: ['@typescript-eslint', 'jest', 'prettier'] | ||
} | ||
plugins: ["jest"], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module.exports = { | ||
moduleFileExtensions: ['ts', 'js'], | ||
moduleFileExtensions: ["ts", "js"], | ||
transform: { | ||
'^.+\\.(ts|tsx)$': 'ts-jest' | ||
"^.+\\.(ts|tsx)$": "ts-jest", | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig.json' | ||
} | ||
"ts-jest": { | ||
tsconfig: "tsconfig.json", | ||
}, | ||
}, | ||
collectCoverageFrom: ['src/**/*.ts'], | ||
setupFilesAfterEnv: ['./tests/jest-setup.ts'], | ||
testMatch: ['**/tests/**/*.test.ts'] | ||
} | ||
collectCoverageFrom: ["src/**/*.ts"], | ||
setupFilesAfterEnv: ["./tests/jest-setup.ts"], | ||
testMatch: ["**/tests/**/*.test.ts"], | ||
}; |
Oops, something went wrong.