2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 21:57:50 +00:00

feat: further integrates eslint, ts , and prettier

This commit is contained in:
Ramy Melo 2022-03-03 19:54:44 -05:00
parent b6b31aa00c
commit 3babd46af8

View File

@ -5,12 +5,21 @@ module.exports = {
node: true, node: true,
jasmine: true, jasmine: true,
}, },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
globals: { globals: {
Atomics: 'readonly', Atomics: 'readonly',
SharedArrayBuffer: 'readonly', SharedArrayBuffer: 'readonly',
}, },
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.json'],
},
plugins: ['@typescript-eslint', 'jasmine'], plugins: ['@typescript-eslint', 'jasmine'],
rules: { rules: {
'no-mixed-spaces-and-tabs': ['off'], 'no-mixed-spaces-and-tabs': ['off'],