Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .eslintignore

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

51 changes: 40 additions & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// MODULES //

var path = require( 'path' );

Check warning on line 25 in eslint.config.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

only the `join` property of the required module is used; require the property directly
var globals = require( 'globals' );
var tsParser = require( '@typescript-eslint/parser' );
var tsPlugin = require( '@typescript-eslint/eslint-plugin' );
Expand All @@ -34,25 +34,54 @@
var pluginExpectType = require( 'eslint-plugin-expect-type' );
var assign = require( './lib/node_modules/@stdlib/object/assign' );
var stdlibPlugin = require( './lib/node_modules/@stdlib/_tools/eslint/rules/scripts/plugin.js' );
var restrictedSyntaxConfig = require( './etc/eslint/overrides/restricted_syntax.js' );
var rules = require( './etc/eslint/rules' );
var tsRules = require( './etc/eslint/rules/typescript.js' );


// VARIABLES //

var tsGlobalVars;
var globalVars;
var config;
var restrictedSyntaxConfig = [
'error',
'ArrowFunctionExpression',
'ClassBody',
'ClassDeclaration',
'ClassExpression',
'DebuggerStatement',
'ExperimentalRestProperty',
'ExperimentalSpreadProperty',
'LabeledStatement',
'RestElement',
'SpreadElement',
'TaggedTemplateExpression',
'TemplateElement',
'TemplateLiteral',
'WithStatement',
'YieldExpression',
'JSXIdentifier',
'JSXNamespacedName',
'JSXMemberExpression',
'JSXEmptyExpression',
'JSXExpressionContainer',
'JSXElement',
'JSXClosingElement',
'JSXOpeningElement',
'JSXAttribute',
'JSXSpreadAttribute',
'JSXText',
'ExportDefaultDeclaration',
'ExportNamedDeclaration',
'ExportAllDeclaration',
'ExportSpecifier',
'ImportDeclaration',
'ImportSpecifier',
'ImportDefaultSpecifier',
'ImportNamespaceSpecifier'
];


// MAIN //

globalVars = assign( {}, globals.browser, globals.node );
globalVars = assign( globalVars, globals.commonjs, globals.worker );
tsGlobalVars = assign( {}, globals.browser, globals.node );

config = [
var config = [
// Global ignores:
{
'ignores': [
Expand All @@ -72,7 +101,7 @@
'languageOptions': {
'ecmaVersion': 6,
'sourceType': 'script',
'globals': globalVars
'globals': assign( {}, globals.browser, globals.node, globals.commonjs, globals.worker )
},
'plugins': {
'n': pluginN,
Expand Down Expand Up @@ -145,7 +174,7 @@
'parserOptions': {
'project': path.join( __dirname, 'tsconfig.json' )
},
'globals': tsGlobalVars
'globals': assign( {}, globals.browser, globals.node )
},
'plugins': {
'@typescript-eslint': tsPlugin,
Expand Down
141 changes: 0 additions & 141 deletions etc/eslint/.eslintrc.benchmarks.js

This file was deleted.

107 changes: 0 additions & 107 deletions etc/eslint/.eslintrc.examples.js

This file was deleted.

Loading
Loading