mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
bcdbd58f06
In reference to request in https://github.com/nativefier/nativefier/pull/1168/files#r623753290 , this PR fixes a lot of the disparity in logging in the app, and fleshes the logging out a bit.
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
// # https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'prettier',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
],
|
|
rules: {
|
|
'no-console': 'error',
|
|
'prettier/prettier': 'error',
|
|
// TODO remove when done killing `any`s and making tsc strict
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
},
|
|
// https://eslint.org/docs/user-guide/configuring/ignoring-code#ignorepatterns-in-config-files
|
|
ignorePatterns: [
|
|
"node_modules/**",
|
|
"app/node_modules/**",
|
|
"app/lib/**",
|
|
"lib/**",
|
|
"built-tests/**",
|
|
"coverage/**",
|
|
]
|
|
};
|