@typed/content-hash
Version:
Content hash a directory of HTML/JS/CSS files and other static assets
38 lines (36 loc) • 1.29 kB
JavaScript
// eslint-disable-next-line no-undef, @typescript-eslint/no-var-requires
const prettierConfig = require('./.prettierrc.js')
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier',
],
rules: {
'prettier/prettier': ['error', prettierConfig],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'import/no-unresolved': 'off', // Allow TS to do this checking,
'import/no-cycle': ['error', { ignoreExternal: true }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
}