]>
cat aescling's git repositories - mastodon.git/blob - .eslintrc.js
12 ATTACHMENT_HOST: false,
15 parser: 'babel-eslint',
27 experimentalObjectRestSpread: true,
37 'import/extensions': [
42 '\\.(css|scss|json)$',
46 paths: ['app/javascript'],
52 'brace-style': 'warn',
53 'comma-dangle': ['error', 'always-multiline'],
61 'comma-style': ['warn', 'last'],
62 'consistent-return': 'error',
63 'dot-notation': 'error',
66 'jsx-quotes': ['error', 'prefer-single'],
67 'no-catch-shadow': 'error',
68 'no-cond-assign': 'error',
78 'no-fallthrough': 'error',
79 'no-irregular-whitespace': 'error',
80 'no-mixed-spaces-and-tabs': 'warn',
81 'no-nested-ternary': 'warn',
82 'no-trailing-spaces': 'warn',
84 'no-unreachable': 'error',
85 'no-unused-expressions': 'error',
91 ignoreRestSiblings: true,
94 'object-curly-spacing': ['error', 'always'],
101 quotes: ['error', 'single'],
104 'valid-typeof': 'error',
106 'react/jsx-boolean-value': 'error',
107 'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
108 'react/jsx-curly-spacing': 'error',
109 'react/jsx-equals-spacing': 'error',
110 'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
111 'react/jsx-indent': ['error', 2],
112 'react/jsx-no-bind': 'error',
113 'react/jsx-no-duplicate-props': 'error',
114 'react/jsx-no-undef': 'error',
115 'react/jsx-tag-spacing': 'error',
116 'react/jsx-uses-react': 'error',
117 'react/jsx-uses-vars': 'error',
118 'react/jsx-wrap-multilines': 'error',
119 'react/no-multi-comp': 'off',
120 'react/no-string-refs': 'error',
121 'react/prop-types': 'error',
122 'react/self-closing-comp': 'error',
124 'jsx-a11y/accessible-emoji': 'warn',
125 'jsx-a11y/alt-text': 'warn',
126 'jsx-a11y/anchor-has-content': 'warn',
127 'jsx-a11y/anchor-is-valid': [
144 'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
145 'jsx-a11y/aria-props': 'warn',
146 'jsx-a11y/aria-proptypes': 'warn',
147 'jsx-a11y/aria-role': 'warn',
148 'jsx-a11y/aria-unsupported-elements': 'warn',
149 'jsx-a11y/heading-has-content': 'warn',
150 'jsx-a11y/html-has-lang': 'warn',
151 'jsx-a11y/iframe-has-title': 'warn',
152 'jsx-a11y/img-redundant-alt': 'warn',
153 'jsx-a11y/interactive-supports-focus': 'warn',
154 'jsx-a11y/label-has-for': 'off',
155 'jsx-a11y/mouse-events-have-key-events': 'warn',
156 'jsx-a11y/no-access-key': 'warn',
157 'jsx-a11y/no-distracting-elements': 'warn',
158 'jsx-a11y/no-noninteractive-element-interactions': [
166 'jsx-a11y/no-onchange': 'warn',
167 'jsx-a11y/no-redundant-roles': 'warn',
168 'jsx-a11y/no-static-element-interactions': [
176 'jsx-a11y/role-has-required-aria-props': 'warn',
177 'jsx-a11y/role-supports-aria-props': 'off',
178 'jsx-a11y/scope': 'warn',
179 'jsx-a11y/tabindex-no-positive': 'warn',
181 'import/extensions': [
188 'import/newline-after-import': 'error',
189 'import/no-extraneous-dependencies': [
194 'app/javascript/mastodon/test_setup.js',
195 'app/javascript/**/__tests__/**',
199 'import/no-unresolved': 'error',
200 'import/no-webpack-loader-syntax': 'error',
202 'promise/catch-or-return': [
This page took 0.106064 seconds and 4 git commands to generate.