GenderDysphoria.fyi/js/.eslintrc.js

28 lines
682 B
JavaScript
Raw Normal View History

module.exports = exports = {
2021-08-25 08:53:42 -07:00
extends: 'twipped/browser',
env: { es6: true, jquery: true },
rules: {
'indent': [ 2, 2, {
'MemberExpression': 1,
} ],
'prefer-arrow-callback': 0,
'object-shorthand': 0,
2021-08-25 08:53:42 -07:00
'node/no-unsupported-features/node-builtins': 0,
},
overrides: [
{
files: '$*.jsx',
2021-08-25 08:53:42 -07:00
extends: 'twipped/react',
rules: {
2021-08-25 08:53:42 -07:00
'react/jsx-indent': [ 2, 2, { checkAttributes: true } ],
'react/no-unknown-property': [ 2, { ignore: [ 'class' ] } ],
'node/no-unpublished-import': 0,
2021-08-25 08:53:42 -07:00
'node/no-missing-import': [ 'error', {
'allowModules': [ 'svg', 'react' ],
} ],
},
},
],
};