├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .husky └── pre-commit ├── .lintstagedrc ├── .npmignore ├── .nvmrc ├── .release-it.yml ├── .snyk ├── LICENSE ├── Makefile ├── README.md ├── docs ├── contribution.md ├── functions.md ├── installation.md ├── intro.md ├── license.md ├── options.md └── usage.md ├── example ├── reporting.js └── reporting.js.example ├── jest.config.js ├── package.json ├── prettier.config.js └── src ├── ValidationError.js ├── ValidationError.test.js ├── Validator.js ├── Validator.test.js ├── __fixtures__ ├── .editorconfig ├── .editorconfig.invalid ├── .editorconfig.unset ├── .lintspacesrc ├── core.fixture ├── core.other-fixture ├── endofline.cr.fixture ├── endofline.crlf.fixture ├── endofline.lf.fixture ├── endofline.mixed.fixture ├── ignores.buildin.js.fixture ├── ignores.userdefined.fixture ├── indentation.guess.newline.fixture ├── indentation.guess.spaces.fixture ├── indentation.guess.tabs.fixture ├── indentation.mixed.fixture ├── indentation.spaces.bom.fixture ├── indentation.spaces.fixture ├── indentation.spaces.invalid.fixture ├── indentation.tabs.bom.fixture ├── indentation.tabs.fixture ├── newlines.blocks.fixture ├── newlines.endoffile.invalid.less.fixture ├── newlines.endoffile.invalid.much.fixture ├── newlines.endoffile.singleline.fixture ├── newlines.endoffile.valid.fixture ├── trailingspaces.ignores.fixture ├── trailingspaces.invalid.fixture └── trailingspaces.valid.fixture ├── constants ├── defaults.js ├── editorconfigMappings.js ├── ignorePatterns.js ├── messages.js └── types.js └── index.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | example/ 3 | tests/ 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | node_modules/ 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/jod 2 | -------------------------------------------------------------------------------- /.release-it.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.release-it.yml -------------------------------------------------------------------------------- /.snyk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/.snyk -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/README.md -------------------------------------------------------------------------------- /docs/contribution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/contribution.md -------------------------------------------------------------------------------- /docs/functions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/functions.md -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/intro.md -------------------------------------------------------------------------------- /docs/license.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/license.md -------------------------------------------------------------------------------- /docs/options.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/options.md -------------------------------------------------------------------------------- /docs/usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/docs/usage.md -------------------------------------------------------------------------------- /example/reporting.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/example/reporting.js -------------------------------------------------------------------------------- /example/reporting.js.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/example/reporting.js.example -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/ValidationError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/ValidationError.js -------------------------------------------------------------------------------- /src/ValidationError.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/ValidationError.test.js -------------------------------------------------------------------------------- /src/Validator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/Validator.js -------------------------------------------------------------------------------- /src/Validator.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/Validator.test.js -------------------------------------------------------------------------------- /src/__fixtures__/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/.editorconfig -------------------------------------------------------------------------------- /src/__fixtures__/.editorconfig.invalid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/.editorconfig.invalid -------------------------------------------------------------------------------- /src/__fixtures__/.editorconfig.unset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/.editorconfig.unset -------------------------------------------------------------------------------- /src/__fixtures__/.lintspacesrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/.lintspacesrc -------------------------------------------------------------------------------- /src/__fixtures__/core.fixture: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__fixtures__/core.other-fixture: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__fixtures__/endofline.cr.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/endofline.cr.fixture -------------------------------------------------------------------------------- /src/__fixtures__/endofline.crlf.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/endofline.crlf.fixture -------------------------------------------------------------------------------- /src/__fixtures__/endofline.lf.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/endofline.lf.fixture -------------------------------------------------------------------------------- /src/__fixtures__/endofline.mixed.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/endofline.mixed.fixture -------------------------------------------------------------------------------- /src/__fixtures__/ignores.buildin.js.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/ignores.buildin.js.fixture -------------------------------------------------------------------------------- /src/__fixtures__/ignores.userdefined.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/ignores.userdefined.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.guess.newline.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.guess.newline.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.guess.spaces.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.guess.spaces.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.guess.tabs.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.guess.tabs.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.mixed.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.mixed.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.spaces.bom.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.spaces.bom.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.spaces.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.spaces.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.spaces.invalid.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.spaces.invalid.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.tabs.bom.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.tabs.bom.fixture -------------------------------------------------------------------------------- /src/__fixtures__/indentation.tabs.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/indentation.tabs.fixture -------------------------------------------------------------------------------- /src/__fixtures__/newlines.blocks.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/newlines.blocks.fixture -------------------------------------------------------------------------------- /src/__fixtures__/newlines.endoffile.invalid.less.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/newlines.endoffile.invalid.less.fixture -------------------------------------------------------------------------------- /src/__fixtures__/newlines.endoffile.invalid.much.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/newlines.endoffile.invalid.much.fixture -------------------------------------------------------------------------------- /src/__fixtures__/newlines.endoffile.singleline.fixture: -------------------------------------------------------------------------------- 1 | module.exports = function() { console.log('foobar'); }; -------------------------------------------------------------------------------- /src/__fixtures__/newlines.endoffile.valid.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/newlines.endoffile.valid.fixture -------------------------------------------------------------------------------- /src/__fixtures__/trailingspaces.ignores.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/trailingspaces.ignores.fixture -------------------------------------------------------------------------------- /src/__fixtures__/trailingspaces.invalid.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/trailingspaces.invalid.fixture -------------------------------------------------------------------------------- /src/__fixtures__/trailingspaces.valid.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/__fixtures__/trailingspaces.valid.fixture -------------------------------------------------------------------------------- /src/constants/defaults.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/constants/defaults.js -------------------------------------------------------------------------------- /src/constants/editorconfigMappings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/constants/editorconfigMappings.js -------------------------------------------------------------------------------- /src/constants/ignorePatterns.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/constants/ignorePatterns.js -------------------------------------------------------------------------------- /src/constants/messages.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/constants/messages.js -------------------------------------------------------------------------------- /src/constants/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schorfES/node-lintspaces/HEAD/src/constants/types.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./Validator'); 2 | --------------------------------------------------------------------------------