CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
eslint.config.mjs81 linesDownload Raw Back to resolve
1import ljharb from '@ljharb/eslint-config/flat';2 3export default [4	...ljharb,5	{6		ignores: [7			'test/resolver/malformed_package_json/package.json',8			'test/list-exports/**',9		],10	},11	{12		rules: {13			'array-bracket-newline': 'off',14			complexity: 'off',15			'consistent-return': 'off',16			curly: 'off',17			'dot-notation': ['error', { allowKeywords: true }],18			'func-name-matching': 'off',19			'func-style': 'off',20			'global-require': 'warn',21			'id-length': ['error', { min: 1, max: 40 }],22			'max-depth': 'off',23			'max-lines-per-function': 'off',24			'max-lines': 'off',25			'max-nested-callbacks': 'off',26			'max-params': 'off',27			'max-statements-per-line': ['error', { max: 2 }],28			'max-statements': 'off',29			'multiline-comment-style': 'off',30			'no-magic-numbers': 'off',31			'no-shadow': 'off',32			'no-use-before-define': 'off',33			'sort-keys': 'off',34			strict: 'off',35		},36	},37	{38		files: ['**/*.js'],39		rules: {40			indent: ['error', 4],41		},42	},43	{44		files: ['bin/**'],45		rules: {46			'no-process-exit': 'off',47		},48	},49	{50		files: ['example/**'],51		rules: {52			'no-console': 'off',53		},54	},55	{56		files: ['test/resolver/nested_symlinks/mylib/*.js'],57		rules: {58			'no-throw-literal': 'off',59		},60	},61	{62		files: ['test/**'],63		languageOptions: {64			ecmaVersion: 5,65			parserOptions: {66				allowReserved: false,67			},68		},69		rules: {70			'dot-notation': ['error', { allowPattern: 'throws' }],71			'max-lines': 'off',72			'max-lines-per-function': 'off',73			'no-unused-vars': ['error', {74				vars: 'all',75				args: 'none',76				caughtErrors: 'none',77			}],78		},79	},80];81