@mint-ui/map
Version:
- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported
110 lines • 3.08 kB
JavaScript
module.exports = {
env: {
browser: true,
node: true
},
extends: [ 'airbnb', 'airbnb/hooks', 'eslint:recommended', 'plugin:react/recommended', 'plugin:import/recommended', 'plugin:storybook/recommended' ],
ignorePatterns: [ '.storybook', '*.d.ts', 'node_modules', 'build', 'dist', '**/env/*.js' ],
overrides: [
{
files: [ '*.ts', '*.tsx' ],
rules: { 'no-undef': 'off' }
}
],
parser: '@typescript-eslint/parser',
parserOptions: { warnOnUnsupportedTypeScriptVersion: false },
plugins: [ '@typescript-eslint', 'sort-keys-fix', 'prettier' ],
rules: {
'@typescript-eslint/ban-ts-comment': [
'error',
{ 'ts-ignore': 'allow-with-description' }
],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'error',
'array-bracket-spacing': [
'error',
'always',
{
arraysInArrays: false,
objectsInArrays: false
}
],
'brace-style': [ 'error', 'allman' ],
'class-methods-use-this': 'off',
'comma-dangle': [ 'error', 'never' ],
'eol-last': [ 'error', 'never' ],
'import/extensions': 'off',
'import/named': 'off',
'import/no-anonymous-default-export': 'off',
'import/no-cycle': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default': 'off',
'import/no-unresolved': 'off',
'import/order': [
'error',
{
alphabetize: {
caseInsensitive: true,
order: 'asc'
},
groups: [ 'external', 'builtin', 'internal', 'sibling', 'parent', 'index' ],
'newlines-between': 'always'
}
],
indent: [ 'error', 'tab', { SwitchCase: 1 }],
'jsx-a11y/control-has-associated-label': 'off',
'jsx-quotes': [ 'error', 'prefer-single' ],
'linebreak-style': 'off',
'max-len': 'off',
'no-console': 'off',
'no-plusplus': 'off',
'no-restricted-exports': 'off',
'no-tabs': [ 'error', { allowIndentationTabs: true }],
'no-unused-vars': 'off',
'object-curly-newline': [ 'error', {
ExportDeclaration: 'never',
ImportDeclaration: 'never',
ObjectExpression: {
minProperties: 3,
multiline: true
},
ObjectPattern: { multiline: true }
}],
'react-hooks/exhaustive-deps': 'off',
'react/button-has-type': 'off',
'react/destructuring-assignment': 'off',
'react/function-component-definition': 'off',
'react/jsx-curly-brace-presence': [
'error',
{
children: 'never',
props: 'never'
}
],
'react/jsx-filename-extension': 'off',
'react/jsx-indent': [ 'error', 'tab' ],
'react/jsx-indent-props': [ 2, 'tab' ],
'react/jsx-props-no-spreading': 'off',
'react/jsx-sort-props': [
'error',
{
callbacksLast: true,
ignoreCase: true,
multiline: 'last',
noSortAlphabetically: false,
reservedFirst: false,
shorthandFirst: false,
shorthandLast: true
}
],
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'require-jsdoc': 'off',
'sort-keys-fix/sort-keys-fix': 'error'
},
settings: {
'import/parsers': { '@typescript-eslint/parser': [ '.ts', '.tsx', '.js' ] },
react: { version: 'detect' }
}
};