coreui-react
/
.eslintrc.js
72 строки · 1.6 Кб
1/**
2* Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
3*
4* This source code is licensed under the MIT license found in the
5* LICENSE file in the root directory of this source tree.
6*/
7
8'use strict'
9
10module.exports = {11root: true, // So parent files don't get applied12env: {13es6: true,14browser: true,15node: true,16},17extends: [18'plugin:react/recommended',19'plugin:@typescript-eslint/recommended',20'plugin:prettier/recommended',21'plugin:unicorn/recommended',22],23parser: '@typescript-eslint/parser',24parserOptions: {25ecmaVersion: 2020,26sourceType: 'module',27ecmaFeatures: {28jsx: true,29},30},31plugins: ['@typescript-eslint', 'react', 'react-hooks'],32settings: {33react: {34pragma: 'React',35version: 'detect',36},37},38rules: {39'unicorn/filename-case': 'off',40'unicorn/no-array-for-each': 'off',41'unicorn/no-null': 'off',42'unicorn/prefer-dom-node-append': 'off',43'unicorn/prefer-export-from': 'off',44'unicorn/prefer-query-selector': 'off',45'unicorn/prevent-abbreviations': 'off',46},47overrides: [48{49files: ['packages/docs/build/**'],50env: {51browser: false,52node: true,53},54parserOptions: {55sourceType: 'script',56},57rules: {58'@typescript-eslint/no-var-requires': 'off',59'no-console': 'off',60'unicorn/prefer-module': 'off',61'unicorn/prefer-top-level-await': 'off',62},63},64{65files: ['packages/docs/**'],66rules: {67'@typescript-eslint/no-var-requires': 'off',68'unicorn/prefer-module': 'off',69},70},71],72}
73