UNPKG

portal-www

Version:

Nova Portal Website. Based on Next starter by Ueno

87 lines (84 loc) 2.79 kB
module.exports = { env: { es6: true, node: true, }, extends: [ 'plugin:@typescript-eslint/recommended', 'eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:prettier/recommended', ], parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', tsconfigRootDir: __dirname, project: ['./tsconfig.json', './tsconfig.server.json'], // could be tsconfig.json too }, plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier', 'simple-import-sort'], rules: { 'no-console': ['error'], 'comma-dangle': ['error', 'always-multiline'], 'no-duplicate-imports': 'error', 'no-eval': 'error', 'prefer-const': 'error', 'no-var': 'error', 'one-var': ['error', 'never'], quotes: ['error', 'single', { avoidEscape: true }], semi: 'error', 'no-prototype-builtins': 'off', 'no-useless-escape': 'off', 'no-constant-condition': 'off', 'no-case-declarations': 'off', 'react/prop-types': 'off', 'react/display-name': 'off', 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': [ 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], '@typescript-eslint/no-explicit-any': ['warn'], '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-floating-promises': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/restrict-template-expressions': 'off', '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/restrict-plus-operands': 'off', '@typescript-eslint/no-misused-promises': 'off', '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/no-unsafe-argument': 'off', 'simple-import-sort/imports': [ 'error', { groups: [ // React imports ['^react', '^@?\\w'], // Node module imports ['^\\u0000'], // Built-in modules ['^@?\\w'], // External modules // Project imports ['^src'], ['^\\.\\.(?!/?$)', '^\\.\\./?$'], // Parent directories ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], // Sibling directories ['^\\./'], // Current directory (index file) ['^\\u0000'], // Object imports ], }, ], }, settings: { react: { version: 'detect', }, }, };