node/tools/eslint-rules
Rich Trott 896e5af1fd tools: remove fixer for non-ascii-character ESLint custom rule
The fixer for non-ascii-character does not typidally do the right thing.
It removes the entire node, not the offending character. I discovered
this when it removed the entire contents of a file and I wasn't sure
which auto-fix rule was doing it.

This commit adds a minimal test for the rule. The tests require that
auto-fix results be supplied, so if someone wants to re-add auto-fixing
to the rule, we'll have tests that it does the right thing.

PR-URL: https://github.com/nodejs/node/pull/38413
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-04-28 10:35:32 -07:00
..
alphabetize-errors.js
async-iife-no-unused-result.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
crypto-check.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
documented-errors.js doc,errors: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
eslint-check.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
inspector-check.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
lowercase-name-for-primitive.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
no-array-destructuring.js tools: add ESLint rule no-array-destructuring 2021-03-03 19:53:28 +01:00
no-duplicate-requires.js tools: decrease code duplication for isString() in lint rules 2019-05-17 20:56:26 -07:00
no-unescaped-regexp-dot.js
non-ascii-character.js tools: remove fixer for non-ascii-character ESLint custom rule 2021-04-28 10:35:32 -07:00
prefer-assert-iferror.js tools: add meta.fixable to fixable lint rules 2020-08-03 08:48:32 -04:00
prefer-assert-methods.js tools: fix object name in prefer-assert-methods.js 2021-03-05 10:17:34 -08:00
prefer-common-mustnotcall.js
prefer-common-mustsucceed.js test: add common.mustSucceed 2020-10-17 00:48:26 +02:00
prefer-primordials.js tools: refactor prefer-primordials 2021-02-16 17:58:31 +01:00
prefer-util-format-errors.js
require-common-first.js tools: decrease code duplication for isString() in lint rules 2019-05-17 20:56:26 -07:00
required-modules.js tools: decrease code duplication for isString() in lint rules 2019-05-17 20:56:26 -07:00
rules-utils.js tools: decrease code duplication for isString() in lint rules 2019-05-17 20:56:26 -07:00