This website requires JavaScript.
Explore
Help
Sign In
joepie91
/
pegjs
Watch
1
Star
0
Fork
You've already forked pegjs
0
Code
Issues
Pull requests
Releases
Wiki
Activity
ec8ede5bbe
pegjs
/
.eslintrc.json
4 lines
38 B
JSON
Raw
Normal View
History
Unescape
Escape
Use ESLint instead of JSHint Implement the swap and change various directives in the source code. The "make hint" target becomes "make lint". The change leads to quite some errors being reported by ESLint. These will be fixed in subsequent commits. Note the configuration enables just the recommended rules. Later I plan to enable more rules to enforce the coding standard. The configuration also sets the environment to "node", which is far from ideal as the codebase contains a mix of CommonJS, Node.js and browser code. I hope to clean this up at some point.
2016-01-22 13:48:22 +01:00
{
ESLint: Set environments better Instead of setting ESLint environment to "node" globally, set it on per-directory basis using separate .eslintrc.json files: Directory Environment ----------------------- bin node lib commonjs spec jasmine It was impossible to use this approach for the "benchmark" directory which contains a mix of files used in various environments. For benchmark/run, the environment is set inline. For the other files, as well as spec/helpers.js, the globals are declared manually (it is impossible to express how these files are used just by a list of environments). Fixes #408.
2016-01-29 14:36:56 +01:00
"extends"
:
"eslint:recommended"
Use ESLint instead of JSHint Implement the swap and change various directives in the source code. The "make hint" target becomes "make lint". The change leads to quite some errors being reported by ESLint. These will be fixed in subsequent commits. Note the configuration enables just the recommended rules. Later I plan to enable more rules to enforce the coding standard. The configuration also sets the environment to "node", which is far from ideal as the codebase contains a mix of CommonJS, Node.js and browser code. I hope to clean this up at some point.
2016-01-22 13:48:22 +01:00
}
Reference in a new issue
Copy permalink