2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-16 09:37:09 +00:00
iconify/packages/core/.eslintrc.cjs

34 lines
693 B
JavaScript
Raw Permalink Normal View History

2020-04-28 09:47:35 +00:00
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
2022-03-16 10:12:25 +00:00
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
2020-04-28 09:47:35 +00:00
globals: {
Atomics: 'readonly',
2020-09-03 07:36:15 +00:00
SharedArrayBuffer: 'readonly',
2020-04-28 09:47:35 +00:00
},
parser: '@typescript-eslint/parser',
2022-03-16 10:12:25 +00:00
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.json', 'tests/tsconfig.json'],
extraFileExtensions: ['.cjs'],
},
2022-03-16 08:08:49 +00:00
plugins: ['@typescript-eslint'],
2020-04-28 09:47:35 +00:00
rules: {
'no-mixed-spaces-and-tabs': ['off'],
'no-unused-vars': ['off'],
},
overrides: [
{
files: ['src/**/*.ts', 'tests/*.ts'],
2020-09-03 07:36:15 +00:00
},
],
2020-04-28 09:47:35 +00:00
};