UNPKG

eslint-flat-config-airbnb

Version:

A mostly reasonable approach to JavaScript and React using Airbnb's ESLint config, updated for ESLint 9+

29 lines (26 loc) 683 B
import globals from 'globals'; import nodePlugin from 'eslint-plugin-n'; const node = { languageOptions: { globals: { ...globals.node, }, }, plugins: { n: nodePlugin, }, rules: { 'n/callback-return': 'off', 'n/global-require': 'error', 'n/handle-callback-err': 'off', 'n/no-deprecated-api': 'error', 'n/no-mixed-requires': ['off', false], 'n/no-new-require': 'error', 'n/no-path-concat': 'error', 'n/no-process-env': 'off', 'n/no-process-exit': 'off', 'n/no-restricted-require': 'off', 'n/no-sync': 'off', }, }; export default node;