mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 12:32:42 +00:00
Update to latest @twipped/eslint-config
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
/* eslint-disable react/prop-types, n/no-missing-import, import/no-unresolved */
|
||||
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
|
||||
|
||||
/** @jsx h */
|
||||
|
||||
import { h, render, Component, Fragment } from 'preact';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
module.exports = exports = {
|
||||
extends: 'twipped/browser',
|
||||
extends: '@twipped/eslint-config/browser',
|
||||
env: { es6: true, jquery: true },
|
||||
rules: {
|
||||
'indent': [ 2, 2, {
|
||||
@@ -8,17 +8,17 @@ module.exports = exports = {
|
||||
} ],
|
||||
'prefer-arrow-callback': 0,
|
||||
'object-shorthand': 0,
|
||||
'node/no-unsupported-features/node-builtins': 0,
|
||||
'n/no-unsupported-features/node-builtins': 0,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: '$*.jsx',
|
||||
extends: 'twipped/react',
|
||||
extends: '@twipped/eslint-config/react',
|
||||
rules: {
|
||||
'react/jsx-indent': [ 2, 2, { checkAttributes: true } ],
|
||||
'react/no-unknown-property': [ 2, { ignore: [ 'class' ] } ],
|
||||
'node/no-unpublished-import': 0,
|
||||
'node/no-missing-import': [ 'error', {
|
||||
'n/no-unpublished-import': 0,
|
||||
'n/no-missing-import': [ 'error', {
|
||||
'allowModules': [ 'svg', 'react' ],
|
||||
} ],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user