mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
* Replace TSLint with ESLint + Prettier TSLint is deprecated, and ESLint is now officially supported by TypeScript. Additionally, Prettier is the industry standard for auto-formatting JS/TS code. That lets code reviews be about content rather than style. The `.eslintrc.js` file contains comments for the reasoning behind every configuration, so feel free to take a look at that as well. * Run src/ through Prettier * Add Mocha support for ESLint We do not actually lint Mocha files right now because they aren't in TS, but moving forward, this will give us better linting rules for our tests
9 lines
140 B
JavaScript
9 lines
140 B
JavaScript
module.exports = {
|
|
tabWidth: 2,
|
|
printWidth: 80,
|
|
singleQuote: true,
|
|
semi: false,
|
|
trailingComma: 'all',
|
|
arrowParens: 'always',
|
|
};
|