mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
| module.exports = {
 | |
| 	root: true,
 | |
| 	plugins: ["prettier", "node"],
 | |
| 	extends: ["eslint:recommended", "plugin:node/recommended"],
 | |
| 	env: {
 | |
| 		node: true,
 | |
| 		es6: true
 | |
| 	},
 | |
| 	parserOptions: {
 | |
| 		ecmaVersion: 2017
 | |
| 	},
 | |
| 	rules: {
 | |
| 		"prettier/prettier": "error",
 | |
| 		"no-undef": "error",
 | |
| 		"no-extra-semi": "error",
 | |
| 		"semi": "error",
 | |
| 		"no-template-curly-in-string": "error",
 | |
| 		"no-caller": "error",
 | |
| 		"yoda": "error",
 | |
| 		"eqeqeq": "error",
 | |
| 		"global-require": "off",
 | |
| 		"brace-style": "error",
 | |
| 		"eol-last": "error",
 | |
| 		"no-extra-bind": "warn",
 | |
| 		"no-process-exit": "warn",
 | |
| 		"no-use-before-define": "off",
 | |
| 		"no-unused-vars": ["error", { args: "none" }],
 | |
| 		"no-unsafe-negation": "error",
 | |
| 		"no-loop-func": "warn",
 | |
| 		"indent": "off",
 | |
| 		"no-console": "off",
 | |
| 		"valid-jsdoc": "error",
 | |
| 		"node/no-unsupported-features": "error",
 | |
| 		"node/no-deprecated-api": "error",
 | |
| 		"node/no-missing-import": "error",
 | |
| 		"node/no-missing-require": ["error", { allowModules: ["webpack"] }],
 | |
| 		"node/no-unpublished-bin": "error",
 | |
| 		"node/no-unpublished-require": "error",
 | |
| 		"node/process-exit-as-throw": "error"
 | |
| 	},
 | |
| 	overrides: [
 | |
| 		{
 | |
| 			files: ["lib/**/*.runtime.js", "buildin/*.js", "hot/*.js"],
 | |
| 			env: {
 | |
| 				es6: false
 | |
| 			},
 | |
| 			globals: {
 | |
| 				Promise: false,
 | |
| 			},
 | |
| 			parserOptions: {
 | |
| 				ecmaVersion: 5
 | |
| 			}
 | |
| 		}
 | |
| 	]
 | |
| };
 |