1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28'use strict';
module.exports = require('eslint-config-sukka').sukka({
ignores: {
customGlobs: ['dist/**/*', 'docs/**/*', ...require('eslint-config-sukka').constants.GLOB_EXCLUDE]
},
react: {
nextjs: false
}
}, {
rules: {
'paths/alias': 'off',
'@eslint-react/no-use-context': 'off',
'@eslint-react/no-context-provider': 'off'
}
}, {
// next.js/nextra naming convention
files: [
'**/app/**/_*.cjs',
String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,
'**/pages/_app.?([cm])[jt]s?(x)',
'**/pages/document.?([cm])[jt]s?(x)'
],
rules: {
'@eslint-react/naming-convention/filename': 'off'
}
});