Make ESLint apply rules to only certain file name patterns

Updated answer: Yes, now it’s possible. In your example it could look like { “rules”: { “quotes”: [2, “double”] }, “overrides”: [ { “files”: [“app/module1/*.js”], “excludedFiles”: “*.spec.js”, “rules”: { “quotes”: [2, “single”] } } ] } You can read more at eslint doc page. Old answer: Currently this is not supported. But for 2.0.0 version … Read more

How to disable warn about some unused params, but keep “@typescript-eslint/no-unused-vars” rule

Only way that I found is to use ignore pattern argsIgnorePattern in rule options. If your variable is unused, just add underscore _ctx and ESLint will ignore it, but no-unused-vars rule will still work for other values. After you will need to use this value, just remove underscore ctx. // note you must disable the … Read more

ESLint ignore specific rule for a specific directory

ESLint configuration (.eslintrc) files are hierarchical: ESLint will automatically look for them in the directory of the file to be linted, and in successive parent directories all the way up to the root directory of the filesystem. This option is useful when you want different configurations for different parts of a project or when you … Read more

Disable eslint rules for folder

To ignore some folder from eslint rules we could create the file .eslintignore in root directory and add there the path to the folder we want omit (the same way as for .gitignore). Here is the example from the ESLint docs on Ignoring Files and Directories: # path/to/project/root/.eslintignore # /node_modules/* and /bower_components/* in the project … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)