Skip to content

Commit

Permalink
style: make configs of prettier and eslint simple
Browse files Browse the repository at this point in the history
  • Loading branch information
progfay committed Jun 13, 2021
1 parent 52ca8f3 commit e22a59a
Show file tree
Hide file tree
Showing 6 changed files with 9,352 additions and 13,306 deletions.
28 changes: 13 additions & 15 deletions .eslintrc.js
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"],
};
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

18 changes: 9 additions & 9 deletions jest.config.js
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"],
};
Loading

0 comments on commit e22a59a

Please sign in to comment.