79.4.0 • Published 13 days ago

@alexlit/lint-kit v79.4.0

Weekly downloads
1,112
License
MIT
Repository
github
Last release
13 days ago

Lint Kit

Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)

Installation

npm i @alexlit/lint-kit -D

Connection

  • Prettier

    // .prettierrc.js
    module.exports = {
      ...require('@alexlit/lint-kit/.prettierrc'),
    };
  • ESLint

    // .eslintrc.js
    module.exports = {
      extends: ['./node_modules/@alexlit/lint-kit/.eslintrc.js'],
    };
  • StyleLint

    // .stylelintrc.js
    module.exports = {
      extends: ['@alexlit/lint-kit/.stylelintrc.js'],
    
      ignoreFiles: [...require('@alexlit/lint-kit/.stylelintrc').ignoreFiles],
    };
  • HTMLLint

    // .linthtmlrc.js
    module.exports = {
      ...require('@alexlit/lint-kit/.linthtmlrc'),
    };
  • MarkdownLint

    // .markdownlintrc.js
    module.exports = {
      ...require('@alexlit/lint-kit/.markdownlintrc'),
    };
  • NPMLint

    // .npmpackagejsonlintrc.json
    {
      "extends": "@alexlit/lint-kit/.npmpackagejsonlintrc.json"
    }
  • CommitLint

    // .commitlintrc.js
    module.exports = {
      extends: ['@alexlit/lint-kit/.commitlintrc.js'],
    };
    // .huskyrc.js
    module.exports = {
      hooks: {
        'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
      },
    };

Recipes

Automatic launch linters and code fixes on commit

// .lintstagedrc.js
module.exports = {
  ...require('@alexlit/lint-kit/.lintstagedrc'),
};
// .huskyrc.js
module.exports = {
  ...require('@alexlit/lint-kit/.huskyrc'),
};

Launching linters manually

// package.json
"scripts": {
  "lint": "./node_modules/@alexlit/lint-kit/scripts/lint.sh",
  "lint:eslint": "./node_modules/@alexlit/lint-kit/scripts/lint.eslint.sh",
  "lint:htmllint": "./node_modules/@alexlit/lint-kit/scripts//lint.htmllint.sh",
  "lint:markdownlint": "./node_modules/@alexlit/lint-kit/scripts/lint.markdownlint.sh",
  "lint:npmlint": "./node_modules/@alexlit/lint-kit/scripts/lint.npmlint.sh",
  "lint:stylelint": "./node_modules/@alexlit/lint-kit/scripts/lint.stylelint.sh",
},
# lint
npm run lint
# autofix errors
npm run lint fix

Publishing a package

# .npmrc
globalconfig="./node_modules/@alexlit/lint-kit/.npmrc"
// package.json
"scripts": {
  "publish": "./node_modules/@alexlit/lint-kit/scripts/publish.sh",
  "semver": "./node_modules/@alexlit/lint-kit/scripts/semver.sh",
  "up": "./node_modules/@alexlit/lint-kit/scripts/up.sh",
  "version": "./node_modules/@alexlit/lint-kit/scripts/version.sh"
},
npm run up # Updates dependencies
npm run semver <patch | minor | major> # Updates package version
npm publish # Publishes a package to npm repository
79.4.0

13 days ago

76.0.1

2 months ago

76.0.2

2 months ago

76.0.0

2 months ago

79.0.0

1 month ago

79.1.1

28 days ago

79.1.0

29 days ago

79.2.0

23 days ago

77.1.0

1 month ago

79.3.0

15 days ago

77.0.0

2 months ago

78.0.0

1 month ago

74.1.0

2 months ago

74.0.1

3 months ago

74.0.0

3 months ago

68.0.0

4 months ago

73.0.0

3 months ago

69.1.1

4 months ago

69.1.0

4 months ago

72.2.1

3 months ago

72.2.0

3 months ago

71.4.0

3 months ago

69.0.0

4 months ago

75.2.0

2 months ago

75.1.0

2 months ago

67.1.1

4 months ago

67.1.0

4 months ago

75.0.0

2 months ago

74.2.0

2 months ago

70.0.0

4 months ago

70.1.0

4 months ago

72.0.0

3 months ago

71.2.0

4 months ago

72.1.0

3 months ago

71.3.0

3 months ago

71.0.0

4 months ago

71.1.0

4 months ago

66.0.0

5 months ago

65.2.0

5 months ago

67.0.0

5 months ago

64.0.0

5 months ago

64.1.0

5 months ago

65.0.0

5 months ago

64.2.0

5 months ago

65.1.0

5 months ago

64.3.0

5 months ago

61.1.0

6 months ago

60.3.0

7 months ago

61.0.0

7 months ago

59.1.0

7 months ago

61.0.1

7 months ago

61.0.2

7 months ago

60.1.0

7 months ago

60.2.0

7 months ago

60.0.0

7 months ago

60.0.1

7 months ago

59.0.0

7 months ago

59.0.1

7 months ago

63.2.0

6 months ago

62.2.0

6 months ago

63.3.1

6 months ago

63.3.0

6 months ago

63.3.2

6 months ago

62.1.0

6 months ago

61.3.0

6 months ago

60.5.0

7 months ago

62.0.0

6 months ago

61.2.0

6 months ago

60.4.0

7 months ago

63.0.0

6 months ago

63.1.1

6 months ago

63.1.0

6 months ago

58.5.0

7 months ago

58.3.0

7 months ago

58.4.0

7 months ago

53.0.0

9 months ago

57.1.0

8 months ago

51.3.0

10 months ago

56.2.0

9 months ago

56.2.1

9 months ago

56.2.2

9 months ago

56.2.3

9 months ago

58.0.0

8 months ago

57.2.0

8 months ago

52.1.0

9 months ago

51.4.0

10 months ago

56.1.0

9 months ago

56.9.0

8 months ago

56.9.1

8 months ago

56.9.2

8 months ago

53.2.0

9 months ago

56.11.0

8 months ago

56.4.0

9 months ago

49.10.0

10 months ago

54.0.1

9 months ago

54.0.0

9 months ago

53.1.0

9 months ago

50.0.0

10 months ago

57.0.0

8 months ago

49.9.0

10 months ago

56.10.0

8 months ago

56.3.0

9 months ago

49.11.0

10 months ago

50.0.2

10 months ago

50.0.1

10 months ago

49.8.0

10 months ago

55.0.0

9 months ago

56.6.0

8 months ago

56.6.1

8 months ago

51.0.0

10 months ago

56.5.0

9 months ago

56.5.1

9 months ago

58.1.0

8 months ago

58.1.1

8 months ago

52.0.0

9 months ago

57.3.0

8 months ago

56.0.0

9 months ago

56.0.1

9 months ago

51.1.0

10 months ago

56.0.2

9 months ago

56.8.0

8 months ago

56.8.1

8 months ago

56.8.2

8 months ago

56.8.3

8 months ago

58.2.0

7 months ago

58.2.1

7 months ago

51.2.0

10 months ago

56.7.0

8 months ago

49.4.0

10 months ago

47.0.0

11 months ago

47.0.1

11 months ago

49.3.0

11 months ago

43.0.0

11 months ago

49.2.0

11 months ago

46.0.1

11 months ago

46.0.0

11 months ago

49.1.0

11 months ago

49.0.0

11 months ago

45.0.0

11 months ago

48.1.0

11 months ago

48.1.1

11 months ago

49.7.0

10 months ago

49.6.0

10 months ago

48.0.0

11 months ago

49.5.0

10 months ago

44.0.0

11 months ago

42.1.0

11 months ago

41.1.0

11 months ago

42.0.0

11 months ago

42.3.0

11 months ago

40.0.0

12 months ago

41.0.2

12 months ago

41.0.1

12 months ago

41.0.0

12 months ago

39.2.0

12 months ago

36.0.1

12 months ago

36.0.2

12 months ago

36.0.0

12 months ago

34.1.0

12 months ago

34.1.1

12 months ago

37.0.0

12 months ago

34.0.0

1 year ago

33.2.0

1 year ago

38.0.0

12 months ago

35.0.2

12 months ago

39.1.0

12 months ago

35.0.0

12 months ago

35.0.1

12 months ago

39.0.0

12 months ago

33.1.0

1 year ago

33.0.0

1 year ago

33.0.1

1 year ago

32.7.0

1 year ago

32.8.0

1 year ago

32.6.0

1 year ago

32.5.0

1 year ago

32.4.0

1 year ago

32.3.0

1 year ago

32.2.1

1 year ago

32.2.0

1 year ago

32.1.0

1 year ago

32.0.1

1 year ago

32.0.0

1 year ago

31.1.1

1 year ago

31.1.0

1 year ago

31.0.0

1 year ago

30.3.0

1 year ago

30.2.1

1 year ago

30.2.0

1 year ago

30.1.2

1 year ago

30.1.0

1 year ago

30.1.1

1 year ago

30.0.1

1 year ago

30.0.0

1 year ago

29.7.1

1 year ago

29.7.0

1 year ago

29.6.0

1 year ago

29.4.0

1 year ago

29.5.0

1 year ago

29.3.0

1 year ago

29.3.1

1 year ago

29.2.3

1 year ago

29.2.4

1 year ago

29.2.0

1 year ago

29.2.1

1 year ago

29.2.2

1 year ago

29.1.0

1 year ago

29.0.0

1 year ago

28.1.1

1 year ago

28.1.0

1 year ago

28.0.0

1 year ago

27.0.0

1 year ago

27.0.2

1 year ago

27.0.1

1 year ago

27.0.3

1 year ago

26.0.2

1 year ago

26.0.1

1 year ago

26.0.0

1 year ago

25.4.0

1 year ago

25.3.0

1 year ago

25.1.0

1 year ago

25.2.0

1 year ago

25.0.0

1 year ago

23.0.0

1 year ago

23.0.2

1 year ago

23.0.1

1 year ago

24.0.1

1 year ago

24.0.0

1 year ago

22.2.1

1 year ago

22.2.0

1 year ago

22.3.0

1 year ago

22.1.1

1 year ago

22.1.0

1 year ago

22.0.0

1 year ago

21.5.4

1 year ago

21.5.3

1 year ago

21.5.2

1 year ago

21.5.1

1 year ago

21.5.0

1 year ago

21.4.0

1 year ago

21.3.0

1 year ago

21.2.0

1 year ago

21.1.0

1 year ago

21.0.2

1 year ago

21.0.1

1 year ago

21.0.0

1 year ago

20.0.1

1 year ago

20.0.0

1 year ago

19.8.0

1 year ago

19.7.0

1 year ago

19.6.0

1 year ago

19.5.0

1 year ago

19.5.2

1 year ago

19.5.1

1 year ago

19.4.0

1 year ago

19.3.0

1 year ago

19.2.0

1 year ago

19.1.1

1 year ago

19.1.0

1 year ago

19.0.0

1 year ago

18.0.0

1 year ago

17.0.0

1 year ago

16.1.2

1 year ago

16.1.1

1 year ago

16.1.0

1 year ago

16.0.1

1 year ago

16.0.0

1 year ago

15.1.0

1 year ago

15.0.0

1 year ago

10.0.0

1 year ago

14.1.0

1 year ago

14.1.1

1 year ago

12.4.0

1 year ago

12.4.1

1 year ago

12.0.0

1 year ago

13.0.0

1 year ago

14.2.0

1 year ago

14.2.1

1 year ago

12.3.0

1 year ago

12.3.1

1 year ago

9.0.1

1 year ago

9.0.0

1 year ago

13.1.0

1 year ago

14.3.0

1 year ago

12.2.0

1 year ago

11.0.0

1 year ago

11.0.1

1 year ago

14.0.0

1 year ago

14.4.0

1 year ago

12.5.0

1 year ago

12.5.1

1 year ago

12.1.0

1 year ago

8.0.1

1 year ago

8.0.0

1 year ago

7.0.1

1 year ago

7.0.0

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

5.5.0

1 year ago

5.3.0

1 year ago

5.4.0

1 year ago

5.2.0

1 year ago

5.1.1

1 year ago

5.1.0

1 year ago

4.0.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

3.5.2

1 year ago

3.5.1

1 year ago

3.5.0

2 years ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.11.1

2 years ago

2.11.0

2 years ago

2.10.1

2 years ago

2.10.2

2 years ago

2.10.0

2 years ago

2.9.1

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.7.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.35.0

2 years ago

0.34.0

2 years ago

0.33.0

2 years ago

0.31.1

2 years ago

0.31.0

2 years ago

0.30.0

2 years ago

0.29.3

2 years ago

0.29.2

2 years ago

0.29.1

2 years ago

0.29.0

2 years ago

0.28.4

2 years ago

0.28.3

2 years ago

0.28.1

2 years ago

0.28.0

2 years ago

0.28.2

2 years ago

0.27.0

2 years ago

0.25.0

2 years ago

0.26.1

2 years ago

0.26.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.7

2 years ago

0.22.6

2 years ago

0.22.5

2 years ago

0.22.4

2 years ago

0.22.3

2 years ago

0.22.2

2 years ago

0.22.1

2 years ago

0.22.0

2 years ago

0.21.0

2 years ago

0.20.1

2 years ago

0.20.2

2 years ago

0.20.0

2 years ago

0.19.1

2 years ago

0.19.0

2 years ago

0.18.1

2 years ago

0.18.0

2 years ago

0.17.2

2 years ago

0.17.1

2 years ago

0.17.0

2 years ago

0.15.0

2 years ago

0.16.0

2 years ago

0.14.12

2 years ago

0.14.11

2 years ago

0.14.10

2 years ago

0.14.9

2 years ago

0.14.8

2 years ago

0.14.7

2 years ago

0.14.5

2 years ago

0.14.6

2 years ago

0.14.4

2 years ago

0.14.3

2 years ago

0.14.2

2 years ago

0.14.0

2 years ago

0.14.1

2 years ago

0.13.3

2 years ago

0.13.1

2 years ago

0.13.2

2 years ago

0.12.0

2 years ago

0.13.0

2 years ago

0.11.1

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago