This website works better with JavaScript.
Explore
Help
Register
Sign In
joepie91
/
pegjs
Watch
1
Star
0
Fork
You've already forked pegjs
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
0847a69643
redux
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '0847a69643'
${ noResults }
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.
9 years ago
{
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.
9 years ago
"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.
9 years ago
}