1.5.2 • Published 6 months ago

eslint-config-aether v1.5.2

Weekly downloads
30
License
Zlib
Repository
github
Last release
6 months ago

Eslint Config Aether

npm version

A custom code style for ESLint.

Preview

const btn = document.getElementById("btn");
let count = 0;

function render() {

	btn.innerText = `Count: ${count}`;

}

btn.addEventListener("click", () => {

	// Count from 1 to 10.
	if(count < 10) {

		count += 1;
		render();

	}

});

Installation

npm install eslint-config-aether

This package includes optional configurations for TypeScript which require the TypeScript ESLint plugin and parser:

npm install @typescript-eslint/eslint-plugin
npm install @typescript-eslint/parser

Included Configurations

The aether configuration is intended to be used for JavaScript projects, aether/typescript-basic is a compatibility configuration for TypeScript projects and aether/typescript adds rules that rely on type checking.

ConfigParent Configs
aethereslint:recommended
aether/typescriptaether, plugin:@typescript-eslint/eslint-recommended-requiring-type-checking
aether/typescript-basicaether, plugin:@typescript-eslint/eslint-recommended

Usage

Note: The config aether/typescript sets parserOptions.project to "tsconfig.json" by default.

package.json

{
	"eslintConfig": {
		"extends": "aether/typescript"
	}
}

.eslintrc

{
	"extends": "aether/typescript"
}
1.5.2

6 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago